//
//  SHStatusRetweetView.swift
//  weibo1
//
//  Created by TownFish on 16/8/2.
//  Copyright © 2016年 TownFish. All rights reserved.
//

import UIKit

class SHStatusRetweetView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //MARK: - 设置视图
    private func setupUI() {
        backgroundColor = RandomColor()
        //01 添加控件
        addSubview(contentLabel)
        //02 添加约束
        contentLabel.snp_makeConstraints { (make) -> Void in
            make.top.leading.equalTo(10)
        }
        self.snp_makeConstraints { (make) -> Void in
            make.bottom.equalTo(contentLabel).offset(10)
        }
        //测试数据
        contentLabel.text = "测试数据测试数据测试数据测试数据测试数据测试数据测试数据测试数据测试数据测试数据"
        
        
    }
    
    //MARK: - 懒加载控件
    private lazy var contentLabel: UILabel = UILabel(textColor: UIColor.darkGrayColor(), textFont: 15, maxWidth: SCREENW - 20)

}
